package com.tdx.blog_nowcoder.dao;

import com.tdx.blog_nowcoder.entity.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {

    List<Comment> selectCommentsByEntity(int entity_type,int entity_id,int offset,int limit);
    int selectCountByEntity(int entity_type,int entity_id);
    int insertComment(Comment comment);

    Comment findCommentById(int comment_id);
}
